<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<body>

<form th:action="${#httpServletUtil.getRequest().getRequestURI()}" class="layui-card layui-form" data-auto="true" method="post" data-table-id="UserTable">

    <input type="hidden" name="id" th:if="${vo}" th:value="${vo.id}"/>

    <div class="layui-card-body">
        <fieldset class="layui-bg-gray">
            <legend><b class="layui-badge think-bg-violet">基本信息</b></legend>
            <div class="layui-row layui-col-space15">
                <div class="layui-col-xs2 text-center padding-top-15">
                    <input type="hidden" data-cut-width="500" data-cut-height="500" data-max-width="500" data-max-height="500" name="headimg" value="{$vo.headimg|default=''}">
                    <script>$('[name=headimg]').uploadOneImage();</script>
                    <style>
                        .uploadimage, .uploadfile{
                            width: 78px!important;
                            height: 78px!important;
                        }
                    </style>
                </div>

                <div class="layui-col-xs5">
                    <label class="block relative">
                        <span class="help-label"><b>专家姓名</b>Name</span>
                        <input th:value="${vo?.name}" name="name" vali-name="姓名" placeholder="请输入姓名" class="layui-input">
                    </label>
                </div>

                <div class="layui-col-xs5">
                    <label class="block relative">
                        <span class="help-label"><b>级别</b>Level</span>
                        <select class="layui-select" name="level">
                            <option value="1">市</option>
                            <option value="2">省</option>
                            <option value="3">省外</option>
                        </select>
                    </label>
                </div>
            </div>

            <div class="layui-row layui-col-space15">

                <div class="layui-col-xs6">
                    <label class="block relative">
                        <span class="help-label"><b>职称</b></span>
                        <select class="layui-select" name="techTitle">
                            <option value="1">主任医师</option>
                            <option value="2">副主任医师</option>
                        </select>
                    </label>
                </div>

                <div class="layui-col-xs6">
                    <label class="block relative">
                        <span class="help-label"><b>医院名称</b>Name</span>
                        <input th:value="${vo?.hosName}" name="hosName" vali-name="姓名" placeholder="请输入医院名称" class="layui-input">
                    </label>
                </div>

            </div>

            <div class="layui-row layui-col-space15">
                <div class="layui-col-xs12">
                    <label class="block relative">
                        <span class="help-label"><b>简介</b></span>
                        <textarea placeholder="请输入简介" class="layui-textarea" name="intro">[[${vo?.intro}]]</textarea>
                    </label>
                </div>
            </div>

            <div class="layui-row layui-col-space15">
                <div class="layui-col-xs12">
                    <label class="block relative">
                        <span class="help-label"><b>擅长</b></span>
                        <textarea placeholder="请输入擅长" class="layui-textarea" name="goodAt">[[${vo?.goodAt}]]</textarea>
                    </label>
                </div>
            </div>

        </fieldset>

        <div class="text-center layui-form-actions1">
            <button class="layui-btn" type="submit">保存</button>
            <button class="layui-btn layui-btn-danger" data-close data-confirm="确定要取消编辑吗？" type='button'>关闭</button>
        </div>

    </div>
</form>

</body>
</html>